[uwsgi]
socket = /opt/{project_name}-env/{project_name}.sock
pidfile = /opt/{project_name}-env/{project_name}.pid
master = true
processes = 4
module = {project_name}.wsgi
enable-threads = true

# 如果不用supervisor托管，就要用daemonize配置
# daemonize = /opt/{project_name}-env/{project_name}/logs/uwsgi.log
# 用了supervisor托管，就需要用到logto，否则不能正常启动
logto = /opt/{project_name}-env/{project_name}/logs/uwsgi.log

chdir = /opt/{project_name}-env/{project_name}
pythonpath = /opt/{project_name}-env/{project_name}
virtualenv = /opt/{project_name}-env
chmod-socket = 664

# gevent = 100
# plugin = python
# no-orphans
